package aaa.mistake.service.impl;

import aaa.mistake.domain.MistakeDTO;
import aaa.mistake.mapper.MistakeMapper;
import aaa.mistake.service.IMistakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class IMistakeServiceImpl implements IMistakeService {
    @Autowired
    private MistakeMapper mistakeMapper;

    @Override
    public List<MistakeDTO> getMistakesByUserId(int userId) {
        return mistakeMapper.getMistakesByUserId(userId);
    }
}